package cn.gson.fengboot.model.pojos;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import java.util.Objects;

@Entity
public class Lxsmb {
    private int xsmbId;//销售目标id
    private Double xsmbHuikuangje;//回款总额
    private Double xsmbQianyuesl;//签约总数
    private Date xsmbZddate;//创建日期
    private List<Lxsmbcb> lxsmbcbs;//从表对象
    private QdepFrom qdepFrom;//部门对象

    @Id
    @Column(name = "xsmb_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public int getXsmbId() {
        return xsmbId;
    }

    public void setXsmbId(int xsmbId) {
        this.xsmbId = xsmbId;
    }


    @Basic
    @Column(name = "xsmb_huikuangje")
    public Double getXsmbHuikuangje() {
        return xsmbHuikuangje;
    }

    public void setXsmbHuikuangje(Double xsmbHuikuangje) {
        this.xsmbHuikuangje = xsmbHuikuangje;
    }

    @Basic
    @Column(name = "xsmb_qianyuesl")
    public Double getXsmbQianyuesl() {
        return xsmbQianyuesl;
    }

    public void setXsmbQianyuesl(Double xsmbQianyuesl) {
        this.xsmbQianyuesl = xsmbQianyuesl;
    }

    @Basic
    @Column(name = "xsmb_zddate")
    public Date getXsmbZddate() {
        return xsmbZddate;
    }

    public void setXsmbZddate(Date xsmbZddate) {
        this.xsmbZddate = xsmbZddate;
    }

    @OneToMany
    @JoinColumn(name = "xsbmcb_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public List<Lxsmbcb> getLxsmbcbs() {
        return lxsmbcbs;
    }

    public void setLxsmbcbs(List<Lxsmbcb> lxsmbcbs) {
        this.lxsmbcbs = lxsmbcbs;
    }


    @ManyToOne
    @JoinColumn(name = "dep_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public QdepFrom getQdepFrom() {
        return qdepFrom;
    }

    public void setQdepFrom(QdepFrom qdepFrom) {
        this.qdepFrom = qdepFrom;
    }
}
